
package com.market.web.action;

import org.springframework.beans.BeanUtils;

import com.market.bean.Kitchenware;

public class AdminKitchSaveAction extends AdminProductAction
{
    private String color;

    private String size;

    private String component;

    private String producingArea;

    public String getColor()
    {
        return color;
    }

    public void setColor(String color)
    {
        this.color = color;
    }

    public String getComponent()
    {
        return component;
    }

    public void setComponent(String component)
    {
        this.component = component;
    }

    public String getProducingArea()
    {
        return producingArea;
    }

    public void setProducingArea(String producingArea)
    {
        this.producingArea = producingArea;
    }

    public String getSize()
    {
        return size;
    }

    public void setSize(String size)
    {
        this.size = size;
    }
    
    public String execute() throws Exception
    {
        //KitchForm kitchf = (KitchForm)form;
        Kitchenware kitch = new Kitchenware();
        BeanUtils.copyProperties(this, kitch);
        return SaveOrUpdateProduct(kitch);
    }

}
